package com.shy.springframework.core.convert.support;

import com.shy.springframework.core.convert.converter.ConverterRegistry;

/**
 * @author yzpang
 * @desc: 默认类型转换服务
 * @date: 2023/2/15 14:29
 */
public class DefaultConversionService extends GenericConversionService{

    public DefaultConversionService() {
        addDefaultConverter(this);
    }

    public static void addDefaultConverter(ConverterRegistry converterRegistry){
        converterRegistry.addConverterFactory(new StringToNumberConverterFactory());
    }
}
